package com.auxgroup.bridge.app.inner.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import java.io.Serializable;

/**
 * Created by fju on 2017/7/28.
 * 绑定的设备信息
 */
@ApiModel(value = "设备信息")
public class DeviceInfoVo implements Serializable {

    @Column(name = "x.device_id")
    @ApiModelProperty(value = "设备Id")
    private String deviceId;

    @ApiModelProperty(value = "来源 0 古北 ,1 机智云")
    @Column(name = "x.source")
    private Integer source;//0 古北 ,1 机智云

    @ApiModelProperty(value = "设备Id")
    @Column(name = "x.product_key")
    private String productKey;

    @ApiModelProperty(value = "设备Id")
    @Column(name = "x.mac")
    private String mac;

    @ApiModelProperty(value = "设备Id")
    @Column(name = "x.did")
    private String did;

    @ApiModelProperty(value = "设备别名")
    @Column(name = "x.alias")
    private String alias;

    @ApiModelProperty(value = "类型")
    @Column(name = "x.type")
    private String type;

    @ApiModelProperty(value = "设备Id")
    @Column(name = "x.device_key")
    private String deviceKey;

    @ApiModelProperty(value = "设备锁")
    @Column(name = "x.device_lock")
    private String deviceLock;

    @ApiModelProperty(value = "密码")
    @Column(name = "x.password")
    private String password;

    @ApiModelProperty(value = "终端Id")
    @Column(name = "x.terminal_id")
    private Integer terminalId;

    @ApiModelProperty(value = "子设备")
    @Column(name = "x.sub_device")
    private Integer subDevice;

    @ApiModelProperty(value = "数据1")
    @Column(name = "x.data_one")
    private String dataOne;

    @ApiModelProperty(value = "数据2")
    @Column(name = "x.data_two")
    private String dataTwo;

    @ApiModelProperty(value = "数据3")
    @Column(name = "x.data_three")
    private String dataThree;

    @ApiModelProperty(value = "城市")
    @Column(name = "x.city")
    private String city;

    @ApiModelProperty(value = "城市编码")
    @Column(name = "x.city_code")
    private String cityCode;

    @ApiModelProperty(value = "设备SN")
    @Column(name = "x.sn")
    private String sn;

    @ApiModelProperty(value = "经度")
    @Column(name = "x.longitude")
    private String longitude;

    @ApiModelProperty(value = "纬度")
    @Column(name = "x.latitude")
    private String latitude;

    @ApiModelProperty(value = "型号Id")
    @Column(name = "x.model_id")
    private String modelId;

    @ApiModelProperty(value = "在线状态")
    @Column(name = "x.is_online")
    private Boolean isOnline;

    @ApiModelProperty(value = "设备型号实物图")
    @Column(name = "device_model_info.entity_uri")
    private String entityUri;

    @ApiModelProperty(value = "用户标签：0主人，1家人，2朋友")
    @Column(name = "x.user_tag")
    private Integer userTag;

    public DeviceInfoVo(String deviceId, Integer source, String productKey, String mac, String did, String alias, String type, String deviceKey, String deviceLock, String password, Integer terminalId, Integer subDevice, String dataOne, String dataTwo, String dataThree, String city, String cityCode, String sn, String longitude, String latitude, String modelId, Boolean isOnline, String entityUri, Integer userTag) {
        this.deviceId = deviceId;
        this.source = source;
        this.productKey = productKey;
        this.mac = mac;
        this.did = did;
        this.alias = alias;
        this.type = type;
        this.deviceKey = deviceKey;
        this.deviceLock = deviceLock;
        this.password = password;
        this.terminalId = terminalId;
        this.subDevice = subDevice;
        this.dataOne = dataOne;
        this.dataTwo = dataTwo;
        this.dataThree = dataThree;
        this.city = city;
        this.cityCode = cityCode;
        this.sn = sn;
        this.longitude = longitude;
        this.latitude = latitude;
        this.modelId = modelId;
        this.isOnline = isOnline;
        this.entityUri = entityUri;
        this.userTag = userTag;
    }

    public DeviceInfoVo() {
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }

    public String getProductKey() {
        return productKey;
    }

    public void setProductKey(String productKey) {
        this.productKey = productKey;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getDid() {
        return did;
    }

    public void setDid(String did) {
        this.did = did;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDeviceKey() {
        return deviceKey;
    }

    public void setDeviceKey(String deviceKey) {
        this.deviceKey = deviceKey;
    }

    public String getDeviceLock() {
        return deviceLock;
    }

    public void setDeviceLock(String deviceLock) {
        this.deviceLock = deviceLock;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getTerminalId() {
        return terminalId;
    }

    public void setTerminalId(Integer terminalId) {
        this.terminalId = terminalId;
    }

    public Integer getSubDevice() {
        return subDevice;
    }

    public void setSubDevice(Integer subDevice) {
        this.subDevice = subDevice;
    }

    public String getDataOne() {
        return dataOne;
    }

    public void setDataOne(String dataOne) {
        this.dataOne = dataOne;
    }

    public String getDataTwo() {
        return dataTwo;
    }

    public void setDataTwo(String dataTwo) {
        this.dataTwo = dataTwo;
    }

    public String getDataThree() {
        return dataThree;
    }

    public void setDataThree(String dataThree) {
        this.dataThree = dataThree;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getModelId() {
        return modelId;
    }

    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    public Boolean getOnline() {
        return isOnline;
    }

    public void setOnline(Boolean online) {
        isOnline = online;
    }

    public String getEntityUri() {
        return entityUri;
    }

    public void setEntityUri(String entityUri) {
        this.entityUri = entityUri;
    }

    public Integer getUserTag() {
        return userTag;
    }

    public void setUserTag(Integer userTag) {
        this.userTag = userTag;
    }
}
